import { nextTick } from 'vue'

export function useIntelligentMeter({ tableRef }) {
    const scrollToLatest = async () => {
        await nextTick();
        tableRef.value?.scrollTo(Number.MAX_SAFE_INTEGER, null);
    };

    return {
        scrollToLatest
    }
}